﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<System.Xml.XmlDocument>" %>

<%= Documents.Common.Helpers.XmlHelper.TransformXML(Model, Server.MapPath(@"~\Transforms\LocationDropdownList.xslt"))%>
<script type="text/javascript">
    $("select.locations").change(function() {
        var eventArgs = { wardCode: $(this).val(), Location: $('select.locations option:selected').text() };
        eventHub.RaiseEvent(PasEvents.OnLocationChanged, eventArgs);
    });
</script>